package com.zhq.blog.core.domain.money;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.zhq.blog.core.domain.BaseRepository;

public interface BusinessManRepository extends JpaRepository<BusinessMan,Long>, BaseRepository<BusinessMan>,JpaSpecificationExecutor<BusinessMan> {

	@Query("select b from BusinessMan b where deleted=0  order by id desc  ")
	Page<BusinessMan> findAll(Pageable pageable);
}
